package club.haomoon.boss.crontab.exceution;


import club.haomoon.boss.crontab.CronExpression;
import club.haomoon.core.entity.system.CrontabData;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

/**
 * -------------------------
 * @Description: 禁止并发任务
 * @Author: Wangjianwei
 * @Date: 2025/02/18 17:14
 * -------------------------
 */
@DisallowConcurrentExecution
public class QuartzDisExecution extends AbstractQuartzJob {

    @Override
    protected void doExecute(JobExecutionContext context, CrontabData crontab) throws Exception {
        CronExpression.invokeMethod(crontab);
    }

}